You create an instance of the Date object with the "new" keyword.

To store the current date in a variable called "my_date":

var my_date=new Date()

After creating an instance of the Date object, you can access all the methods of the object from the "my_date" variable. If, for example, you want to return the date (from 1-31) of a Date object, you should write the following:

my_date.getDate()

#Title: JavaScript Date Object
#Element: 381: The Date object The Date object is used to work ...
#Article: 176: JavaScript Date Object